﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace iTeamyou.LTS.Core.Models
{
	/// <summary>
	/// 入库商品
	/// </summary>
	public class InboundProduct
	{
        /// <summary>
        /// 入库商品编号
        /// </summary>
		public string Id { get; set; }

        /// <summary>
        /// SKU编号
        /// </summary>
        [DisplayName("SKU")]
        [Description("SKU")]
        [Required(ErrorMessage = "SKU不能为空")]
        public string SKU { get; set; }

        /// <summary>
        /// UPC编号
        /// </summary>
        [DisplayName("UPC")]
        [Description("UPC")]
        [Required(ErrorMessage = "UPC不能为空")]
        public string UPC { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [DisplayName("商品名称")]
        [Description("商品名称")]
        [Required(ErrorMessage = "商品名称不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [DisplayName("数量")]
        [Description("数量")]
        [Required(ErrorMessage = "数量不能为空")]
        public int? Quantity { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [DisplayName("供应商名称")]
        [Description("供应商名称")]
        public string SupplierName { get; set; }

        /// <summary>
        /// 采购订单号
        /// </summary>
        [DisplayName("采购订单号")]
        [Description("采购订单号")]
        [Required(ErrorMessage = "采购订单号不能为空")]
        public string OrderId { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [DisplayName("批次号")]
        [Description("批次号")]
        [Required(ErrorMessage = "批次号不能为空")]
        public string BatchId { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        [DisplayName("入库时间")]
        [Description("入库时间")]
        public DateTime? CreatedOn { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        [DisplayName("创建者")]
        [Description("创建者")]
        public string CreatedBy { get; set; }

        /// <summary>
        /// 最近更新时间
        /// </summary>
        [DisplayName("最近更新时间")]
        [Description("最近更新时间")]
        public DateTime? LastModifiedOn { get; set; }

        /// <summary>
        /// 最近更新者
        /// </summary>
        [DisplayName("最近更新者")]
        [Description("最近更新者")]
        public string LastModifiedBy { get; set; }
    }
}

